import request from '@/request/request.js'

//菜单列表
export function getMenuList(data) {
    return request({
        url: '/groupOne/menu/list',
        method: 'post',
        data
    })
}

//新增菜单
export function addMenu(data) {
    return request({
        url: '/groupOne/menu/addMenu',
        method: 'post',
        data
    })
}

//修改菜单
export function upMenu(data) {
    return request({
        url: '/groupOne/menu/upMenu',
        method: 'post',
        data
    })
}
//删除菜单
export function delMenu(menuId) {
    return request({
        url: '/groupOne/menu/delMenu/'+menuId,
        method: 'get'
    })
}
//回显菜单信息
export function getMenuById(menuId) {
    return request({
        url: '/groupOne/menu/getMenuById/'+menuId,
        method: 'get'
    })
}